package thethree;

import java.util.Scanner;

public class test4 {
	//静态方法
	static int application3(String a) {
		int n = a.length();
		for(int i=n-1;i>=0;i--) {//倒叙输出
			System.out.print(a.charAt(i));
		}
		return n;
	}
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		System.out.println(" ");
		System.out.println(application3(a));
		
	}
}
